package com.ostrich.note.ui.note.viewmodel;

import com.ostrich.note.entity.BaseResponseEntity;
import com.ostrich.note.ui.note.entity.NoteEntity;
import com.ostrich.note.ui.note.entity.TypeEntity;
import com.ostrich.note.ui.note.repository.NoteRepository;

import java.util.List;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;

public class NoteViewModel extends ViewModel {
    private NoteRepository mNoteRepository = new NoteRepository();
    //笔记列表
    public LiveData<BaseResponseEntity<List<NoteEntity>>> notepadDataList(int note_type_id){
        return mNoteRepository.notepadDataList(note_type_id);
    }
    //分类列表
    public LiveData<BaseResponseEntity<TypeEntity>> notepadClassifiedData(){
        return mNoteRepository.notepadClassifiedData();
    }
}
